package com.example.service;

import com.example.config.ResponseVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pojo.Homework;
import com.example.pojo.dto.HomeworkDTO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author GovQ
 * @description 针对表【homework】的数据库操作Service
 * @createDate 2024-06-18 22:13:35
 */
public interface HomeworkService extends IService<Homework> {
    ResponseEntity<ResponseVO<String>> addOrUpdateHomeWork(Homework homework,String releaseDateTime);

    // 查询该班级的所有作业
    ResponseEntity<ResponseVO<List<HomeworkDTO>>> getAllHomeworkByClassId(Long classId);

    // 查询教师发布的所有作业
    ResponseEntity<ResponseVO<List<HomeworkDTO>>> getHomeworkByTeacherId(Long teacherId);

    ResponseEntity<ResponseVO<HomeworkDTO>> getHomeworkDetail(Long homeworkId);
}
